package lab02.test02;

public class Roundness {
    public static void main(String[] args) {
        System.out.println("周长："+perimeter(4)+"\n"+"面积："+area(4));

    }
    public static double perimeter(double r){
        return 2*3.14*r;

    }
    public static double area(double r){
        return 3.14*r*r;
    }
}
